<div class="login">
{% if app.session.hasFlash('login-error') %}
    <div class="flash-login-error">
        <ul>
        {% for error in app.session.flash('login-error') %}
            <li>{{error}}</li>
        {% endfor %}
        </ul>
    </div>
{% endif %}
{% if app.session.hasFlash('login-success') %}
    <div class="flash-login-success">
        {{ app.session.flash('login-success') }}
    </div>
{% else %}
    <form action="{{ path('_login') }}" method="POST" id="login_form">
        {{ form_widget(form) }}
        <input type="submit" value="{%trans%}Logi sisse{%endtrans%}" />
    </form>
{% endif %}
</div>